package com.hy.admin.dao;

import com.hy.admin.entity.NewsImageEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NewsImageDao {
    int deleteByPrimaryKey(Long id);

    int insert(NewsImageEntity record);

    int insertSelective(NewsImageEntity record);

    NewsImageEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(NewsImageEntity record);

    int updateByPrimaryKey(NewsImageEntity record);

    List<NewsImageEntity> selectByNewsId(Long newsId);

    int batchInsert(List<NewsImageEntity> list);

    int deleteByNewsIds(List<Long> idList);

    List<String> selectImgByNewsIds(List<Long> idList);
}